/**
 * 使用 import.meta.glob 动态引入多个模块
 */
const modules = import.meta.glob(['../views/**/*.vue', '!../views/**/404.vue', '!../views/login', '!../views/**/dialog*'])
console.log('modules', modules)

export default modules

// ===============

/**
 * 该文件用于导出一个
 * {
 *    'sys/student-list/index.vue': 组件
 * }
 */
// const MenuList = () => import('@/views/sys/menu-list/index.vue')
// const RoleList = () => import('@/views/sys/role-list/index.vue')
// const StudentList = () => import('@/views/sys/student-list/index.vue')
// const UserList = () => import('@/views/sys/user-list/index.vue')
// const Map = () => import('@/views/map/index.vue')
// const MapTwo = () => import('@/views/map/index2.vue')
// const Upload = () => import('@/views/upload/index3.vue')
// const Tian = () => import('@/views/tian.vue')


// interface IAsyncRoutes {
//   [key: string]: any
// }

// const asyncRoutes: IAsyncRoutes = {
//   'sys/menu-list/index.vue': MenuList,
//   'sys/role-list/index.vue': RoleList,
//   'sys/student-list/index.vue': StudentList,
//   'sys/user-list/index.vue': UserList,
//   'map/index.vue': Map,
//   'map/index2.vue': MapTwo,
//   'upload/index3.vue': Upload,
//   'tian.vue': Tian
// }

// export default asyncRoutes
